package cn.nuist.entity;

public class OrderItems {
    private int orderitemsID;
    private int orderID;
    private int productID;
    private int quantity;
    private double unitPrice;
    private double discountRate;
    private double lineTotal;

    public OrderItems(int orderitemsID, int orderID, int productID, int quantity, double unitPrice, double discountRate, double lineTotal) {
        this.orderitemsID = orderitemsID;
        this.orderID = orderID;
        this.productID = productID;
        this.quantity = quantity;
        this.unitPrice = unitPrice;
        this.discountRate = discountRate;
        this.lineTotal = lineTotal;
    }

    public OrderItems(int orderID, int productID, int quantity, double unitPrice, double discountRate, double lineTotal) {
        this.orderID = orderID;
        this.productID = productID;
        this.quantity = quantity;
        this.unitPrice = unitPrice;
        this.discountRate = discountRate;
        this.lineTotal = lineTotal;
    }

    public int getOrderitemsID() {
        return orderitemsID;
    }

    public void setOrderitemsID(int orderitemsID) {
        this.orderitemsID = orderitemsID;
    }

    public int getOrderID() {
        return orderID;
    }

    public void setOrderID(int orderID) {
        this.orderID = orderID;
    }

    public int getProductID() {
        return productID;
    }

    public void setProductID(int productID) {
        this.productID = productID;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public double getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(double discountRate) {
        this.discountRate = discountRate;
    }

    public double getLineTotal() {
        return lineTotal;
    }

    public void setLineTotal(double lineTotal) {
        this.lineTotal = lineTotal;
    }

    @Override
    public String toString() {
        return "OrderItems{" +
                "orderitemsID=" + orderitemsID +
                ", orderID=" + orderID +
                ", productID=" + productID +
                ", quantity=" + quantity +
                ", unitPrice=" + unitPrice +
                ", discountRate=" + discountRate +
                ", lineTotal=" + lineTotal +
                '}';
    }
}
